package com.njust.service;

import com.njust.dataobject.User;
import com.njust.vo.PasswordVO;
import com.njust.vo.ResultVO;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/1/12 下午5:39
 */
public interface UserService{
    //保存或更新用户
    ResultVO save(User user);

    //更新用户
    ResultVO update(User user);

    //删除用户
    ResultVO deleteUser(String username);

    //登入用户
    User login(User user);

    //通过用户名找到用户的具体信息
    ResultVO findByUsername(String username);


    //用户修改密码
    ResultVO modifyPassword(PasswordVO passwordVO);

    ResultVO findAllUsers();
}
